﻿@model CodeSaude.Application.ViewModels.ProntuarioViewModel

@{
    Layout = null;
}

<div class="modal-dialog">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Fechar"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title">@ViewBag.Title</h4>
        </div>

        @using (Html.BeginForm("Edit", "Registro", FormMethod.Post))
        {
            <div class="modal-body">
                <div class="form-group">
                    @Html.HiddenFor(m => m.ProntuarioId)
                    @Html.HiddenFor(m => m.IdEspecialidade)
                    @Html.AntiForgeryToken()

                    <div class="panel panel-default">
                        <div class="panel-heading" style="font-weight: bold;">Dados da Pessoa</div>
                        <div class="panel-body">
                            <div style="float:left; margin-right: 20px;">
                                @Html.LabelFor(model => model.NomePessoa, htmlAttributes: new { @class = "control-label" })
                                @Html.EditorFor(model => model.NomePessoa, new { htmlAttributes = new { @class = "form-control input-xxlarge" } })
                                @Html.ValidationMessageFor(model => model.NomePessoa)
                            </div>
                        </div>
                    </div>
                </div>


            </div>

            <div class="modal-footer">
                <input id="btnSalvar" type="submit" value="Salvar" class="btn btn-success" />
                <input id="btnCancelar" type="button" value="Cancelar" class="btn btn-danger" data-dismiss="modal" />
            </div>
        }
    </div>
</div>
